/*
 * @Author: fisher
 * @Date: 2023-12-28 11:16:52
 * @LastEditTime: 2024-03-20 14:31:01
 * @LastEditors: fisher luthor-li@qq.com
 * @Description:
 * @FilePath: \front-end-template\src\modules\DataManage\transform\api.js
 */
import request from '@/utils/request'

/**
 * @description: 获取模板列表
 * @param {*} params
 * @param {*} data
 * @return {*}
 */
export const getTemplateList = (params, data) => {
  return request({
    url: '/converter/fmeTemplate/queryPageList',
    method: 'post',
    data,
    params
  })
}

/**
 * @description: 查询模板任务参数
 * @return {*}
 */

export function parseTemplateParams(params) {
  return request({
    url: '/converter/fmeTemplate/parseTemplateParams',
    method: 'get',
    params
  })
}

/**
 * @description:  添加任务参数
 * @return {*}
 */
export function addTaskParams(data) {
  return request({
    url: '/converter/fmeJob/add',
    method: 'post',
    data
  })
}

/**
 * @description:  提交任务
 * @return {*}
 */
export function submitTask(data) {
  return request({
    url: '/converter/fmeJob/submit',
    method: 'post',
    data
  })
}

export function getZipParams(params) {
  return request({
    url: '/converter/fmeTemplate/parseZipParams',
    method: 'get',
    params
  })
}
